package com.sh.apiclientsdk.client;


import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;

/**
 * 获取随机数
 */
public class RandomNumClient extends CommonApiClient {

    public RandomNumClient(String accessKey, String secretKey) {
        super(accessKey, secretKey);

    }

    /**
     * 获取随机数
     * @return
     */
    public String getNum(){
        String json = JSONUtil.toJsonStr("");
        return HttpRequest.post(GATEWAY_HOST+"/interface/random/num")
                .addHeaders(getHeadMap(json,accessKey,secretKey))
                .body(json)
                .execute().body();
    }

}
